package top.infopub.mgr.sg.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

import top.infopub.generic.GenericDao;
import top.infopub.generic.GenericServiceImpl;
import top.infopub.mgr.sg.dao.CoopInfoLogDao;
import top.infopub.model.sg.CoopInfoLog;
import top.infopub.mgr.sg.service.CoopInfoLogService;

@Service
public class CoopInfoLogServiceImpl extends GenericServiceImpl<CoopInfoLog, String> implements
		CoopInfoLogService {

	@Autowired
	private CoopInfoLogDao coopInfoLogDao;
	
	@Override
	public GenericDao<CoopInfoLog, String> getDao() {
		return coopInfoLogDao;
	}

    @Override
    public Page<CoopInfoLog> selectByCoopId(Page<CoopInfoLog> page, CoopInfoLog coopInfoLog) {
        PageHelper.startPage(page.getPageNum(), page.getPageSize());
        return (Page<CoopInfoLog>)coopInfoLogDao.selectByCoopId(coopInfoLog);
    }

   

}